package com.googlecode.yami;

import java.sql.Connection;

import javax.swing.JComponent;

public class BoxComponent extends JComponent {

    private TabHeaderComponent thc;
    private int place;
    private BrowseInterface bi;

    BoxComponent(final Connection srvConn) {

	bi = new BrowseInterface(srvConn);

	// adding the new tab and the components to the main Pane
	MainWindow.JTP.addTab("Empty tab opened ...", bi);
	place = MainWindow.JTP.indexOfComponent(bi);

	thc = new TabHeaderComponent(MainWindow.JTP);

	MainWindow.JTP.setTabComponentAt(place, thc);
    }
}
